package com.gdsdxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gdsdxy.dto.LabelFromDTO;
import com.gdsdxy.dto.ResultVo;
import com.gdsdxy.entity.BlogLabel;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IBlogLabelService extends IService<BlogLabel> {
    /**
     * 添加标签
     * @param labelFromDTO 标签信息
     * @return ResultVo
     */
    ResultVo addLabel(LabelFromDTO labelFromDTO);

    /**
     * 查找标签
     * @param id 标签ID
     * @return  ResultVo
     */
    ResultVo selectLabel(Long id);

    /**
     * 查询多个标签
     * @param ids 标签ID集合
     * @return ResultVo
     */
    ResultVo selectLabelList(List<Long> ids);
}
